package com.pine.common.captcha.config;

import com.pine.common.captcha.core.CaptchaTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 验证码配置属性类
 *
 * @author pine manage
 * @since 2024-08-21
 */
@Data
@ConfigurationProperties(prefix = "pine.common.captcha")
public class CaptchaProperties {

    /**
     * 验证码类型
     */
    private CaptchaTypeEnum type = CaptchaTypeEnum.LINE;

    /**
     * 验证码图片宽度
     */
    private int width;

    /**
     * 验证码图片高度
     */
    private int height;

    /**
     * 干扰线数量
     */
    private int interfereCount;

    /**
     * 文本透明度
     */
    private Float textAlpha;

    /**
     * 验证码过期时间，单位：秒
     */
    private Long expireSeconds;
}
